#Boa:Dialog:DlgVoucherStyle

import wx

def create(parent):
    return DlgVoucherStyle(parent)

[wxID_DLGVOUCHERSTYLE, wxID_DLGVOUCHERSTYLEBTNPAYALL, 
 wxID_DLGVOUCHERSTYLEBTNPAYBILL, 
] = [wx.NewId() for _init_ctrls in range(3)]

class DlgVoucherStyle(wx.Dialog):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_DLGVOUCHERSTYLE,
              name=u'DlgVoucherStyle', parent=prnt, pos=wx.Point(446, 292),
              size=wx.Size(175, 113), style=wx.RAISED_BORDER, title=u'Dialog1')
        self.SetClientSize(wx.Size(167, 79))

        self.btnPayBill = wx.Button(id=wxID_DLGVOUCHERSTYLEBTNPAYBILL,
              label=u'\u4e3a\u8be5\u5355\u636e\u4ed8\u6b3e', name=u'btnPayBill',
              parent=self, pos=wx.Point(0, 0), size=wx.Size(168, 40), style=0)
        self.btnPayBill.Bind(wx.EVT_BUTTON, self.OnBtnPayBillButton,
              id=wxID_DLGVOUCHERSTYLEBTNPAYBILL)

        self.btnPayAll = wx.Button(id=wxID_DLGVOUCHERSTYLEBTNPAYALL,
              label=u'\u65b0\u589e\u6536\u6b3e\u5355', name=u'btnPayAll',
              parent=self, pos=wx.Point(0, 40), size=wx.Size(168, 40), style=0)
        self.btnPayAll.Bind(wx.EVT_BUTTON, self.OnBtnPayAllButton,
              id=wxID_DLGVOUCHERSTYLEBTNPAYALL)

    def __init__(self, parent):
        self._init_ctrls(parent)
        
        self.bPayForBill = True

    def payForBill(self):
        return self.bPayForBill
        
    def OnBtnPayBillButton(self, event):
        self.bPayForBill = True
        self.EndModal(wx.ID_OK)        
        
    def OnBtnPayAllButton(self, event):
        self.bPayForBill = False
        self.EndModal(wx.ID_OK)
